{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
          <section class="col-lg-12 connectedSortable">
             <div class="box box-default box-solid">
                 <form action="" method="post">
                    <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">补贴设置</p>
                    </div>
                    <div class="box-body">
                          <div class=" form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     班主任补贴：
                                </label>
                                <div class="col-md-4">
                                     <input type="text" class="form-control" name="set_classsub" value="{%$set_data.set_classsub%}" placeholder="每个学生补贴多少元">
                                </div>
                          </div>     	   
                    </div><!--box-body -->
                     <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">不计常规补贴项目设置</p>
                    </div>
                    <div class="box-body">
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     不计常规补贴项目：
                                </label>
                                <div class="col-md-6">
								{%foreach from=$set_data.list_unitem key=key item=value%}
                                     <label class="choice"><input type="checkbox" name="set_unitem[]" value="{%$key%}" {%if $value.check=='1'%}checked{%/if%}> {%$value.name%}</label>
								{%/foreach%}	 
                                </div>
                        </div>                               
                    </div><!--box-body --> 
                    <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">全勤奖设置</p>
                    </div>
                    <div class="box-body">
                        <div class="form-group" >
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     不计全勤奖种设置：
                                </label>
                                <div class="input-group col-md-8">
									{%foreach from=$set_data.list_uncheck key=key item=value%}
                                     <label class="choice"><input type="checkbox" name="set_uncheck[]" value="{%$key%}" {%if $value.check=='1'%}checked{%/if%}> {%$value.name%}</label>
									{%/foreach%}
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     月全勤奖：
                                </label>
                                <div class="input-group col-md-4">
                                     <input type="text" class="form-control" name="set_mchecksub" value="{%$set_data.set_mchecksub%}">
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     期末全勤奖：
                                </label>
                                <div class="input-group col-md-4">
                                     <input type="text" class="form-control" name="set_lchecksub" value="{%$set_data.set_lchecksub%}">
                                </div>
                        </div>                                 
                    </div><!--box-body --> 
                    <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">值日补贴设置</p>
                    </div>
                    <div class="box-body">
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     普通值日位置一次：
                                </label>
                                <div class="input-group col-md-4">
                                     <input type="text" class="form-control" name="set_cdutysub"  value="{%$set_data.set_cdutysub%}">
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     特殊值日位置一次：
                                </label>
                                <div class="input-group col-md-4">
                                     <input type="text" class="form-control" name="set_sdutysub"  value="{%$set_data.set_sdutysub%}">
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     特殊值日位置：
                                </label>
                                <div class="input-group col-md-8">
									{%foreach from=$area_lists key=key item=value%}
                                     <label class="choice"><input type="checkbox" name="set_dutyarea[]" value="{%$key%}" {%if $set_dutyarea ==" "%}{%else%}{%if $key|in_array:$set_dutyarea%}checked{%/if%}{%/if%}> {%$key%}</label>
									{%/foreach%}
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     不计值日日期：
                                </label>
                                <div class="input-group col-md-2" style="float:left;">
                                      <input id="from" class="form-control" type="text" name="set_dutystart" value="{%$set_data.set_dutystart%}">
                                        <div class="input-group-addon">
                                            <i class="fa fa-calendar"></i>
                                        </div>
                                </div>
                                <span style="float:left;"> ~ </span>
                                <div class="input-group col-md-2">
                                      <input id="to" class="form-control" type="text" name="set_dutyend" value="{%$set_data.set_dutyend%}">
                                        <div class="input-group-addon">
                                            <i class="fa fa-calendar"></i>
                                        </div>
                                </div>
                        </div>                                 
                    </div><!--box-body --> 
                     <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">课时补贴设置</p>
                    </div>
                    <div class="box-body">
                        <div class="form-group" >
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     首尾周是否计整周：
                                </label>
                                <div class="input-group col-md-4">
                                      <label class="choice"><input type="radio" name="hour_isweek" value="1" {%if $set_data.hour_isweek=='1'%}checked{%/if%}> 是</label>
                                      <label class="choice"><input type="radio" name="hour_isweek" value="0" {%if $set_data.hour_isweek=='0'%}checked{%/if%}> 否</label>
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     课时费设置：
                                </label>
                                <div class="input-group col-md-4">
                                     <input type="text" class="form-control" name="set_hoursub" value="{%$set_data.set_hoursub%}" placeholder="每节课费用">
                                </div>
                        </div>                                
                    </div><!--box-body -->
                    <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">超课时补贴设置</p>
                    </div>
                    <div class="box-body">
                        <div class="form-group" >
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     周标准课时设置：
                                </label>
                                <div class="input-group col-md-4">
                                      <input type="text" class="form-control" name="set_hourlimit" value="{%$set_data.set_hourlimit%}" placeholder="每周标准课时">
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     超课时补贴设置：
                                </label>
                                <div class="input-group col-md-4">
                                     <input type="text" class="form-control" name="set_uphoursub" value="{%$set_data.set_uphoursub%}" placeholder="每超出一节课补贴费用">
                                </div>
                        </div>                                
                    </div><!--box-body --> 
                    <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">代课补贴费用设置</p>
                    </div>
                    <div class="box-body">
                        <div class="form-group" >
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     代课补贴：
                                </label>
                                <div class="input-group col-md-4">
                                      <input type="text" class="form-control" name="set_adjustsub" value="{%$set_data.set_adjustsub%}" placeholder="每节课补贴费用">
                                </div>
                        </div>                             
                    </div><!--box-body --> 
                    <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">缺课应扣费用设置</p>
                    </div>
                    <div class="box-body">
						{%foreach from=$set_data.list_adjustcost key=key item=value%}
                        <div class="form-group" >
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     {%$key%}：
                                </label>
                                <div class="input-group col-md-4">
                                      <input type="text" class="form-control" name="set_adjustcost_{%$key%}" value="{%$value%}" placeholder="每节课应扣费用">
                                </div>
                        </div>
						{%/foreach%}
                        
                    </div><!--box-body --> 
                    <div class="box-footer text-center">
                        <button type="submit" class="btn btn-primary"> 确 定</button>   	   
                    </div>
                  </form>  
             </div><!--box box-default box-solid-->
          </section> 
        </div><!--row-->
    </section>
 </div>
{%include file="index.footer.tpl.php"%}
<script>
  $(function() {
    $( "#from" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#to" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#from" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
  </script>

